// This file is automatically included by javascript_include_tag :defaults
var Props = ', resizable=yes, scrollbars=yes, status=yes, location=yes, menubar=yes, toolbar=yes, directories=yes';
function BrowsePath(id)
{
  var currentPage = window.open('/paths/current/' + id, '_current_page', 'width=800, height=600, left=305, top=50' + Props);
  currentPage.focus();
  var browsePage = window.open('/paths/browse/' + id, 'browse_page', 'width=250, height=600, left=50, top=50' + Props);
  browsePage.focus();
  return false;
}

function SetCurrentPage(uri)
{
  var currentPage = window.open(uri, '_current_page', 'width=800, height=600, left=305, top=50' + Props);
  currentPage.focus();
  return false;
}

function OpenInOriginal(uri)
{
  var editor = null;
  if(null != window.opener)
  {
    editor = window.opener.open(uri, '_self');
  }
  else
  {
    editor = window.open(uri, '_editor', Props);
  }
  
  editor.focus();
  return false;
} 

